<%= form_tag({:action=> "new"}, { :onSubmit => "Element.show('spinner');" }) %>
<table>
    <tr>
        <td>
            <label for="searchtext">
                <font size="1">
                    <b>Live TR Search:</b>
                </font>
            </label>
        </td>
        <td>
            <%= text_field_tag :searchtext %>
        </td>
        <td>
            <img alt="spinner" id="spinner" src="http://www.charleston.co.ke/img/spinner.gif" style="display:none;"/>
        </td>
    </tr>
</table>
</form><%= observe_field(:searchtext,
:frequency => 0.5,
:update => :search_hits,
:loading => "Element.show('spinner')",
:complete => "Element.hide('spinner')",
:with => "searching",
:url => { :action => :live_search }) %>
<div id="search_hits" style=>
</div>
